package StudyCode.summary.regularexpressionsmatch;

import java.util.regex.Pattern;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SplitStringByRegex {
	private static final String REGEX = ":";
	private static final String INPUT = "one:two:three:four:five";

	public static void main(String[] args) {
		Pattern p = Pattern.compile(REGEX);
		String[] items = p.split(INPUT);
		for (String s : items) {
			System.out.println(s);
		}
	}
}
